import java.util.ArrayList;
import java.util.List;

public class Test_1 {
    public static void main(String[] args) {
        String str1 = "Welcome to cvte";
        String str2 = "come";
        List<Character> ret = func(str1,str2);
        for(char x: ret) {
            System.out.print(x);
        }
    }
    public static List<Character> func(String str1, String str2) {
        List<Character> arrayList = new ArrayList();
        char[] ch = str1.toCharArray();
        for (int i = 0; i < str1.length(); i++) {
            if(!str2.contains(str1.charAt(i)+""))
                arrayList.add(str1.charAt(i));
        }
        return arrayList;
    }
}
